﻿/*
---------------------------------------
    Rodeo Game Engine
	Rodeo Event Module
	Copyriht(c) Marcin Goryca
---------------------------------------
*/	
#include "core\error.h"
#include "event\event.h"
#include "event\keyboardevent.h"
#include "tools\xmlparser.h"

using namespace rodeotools;
using namespace rodeoio;
using namespace rodeocore;

namespace rodeoevent
{
bool KeyboardEvent::onKeyDown(KeyMap key)
{
    switch(key)
    {
    case KEY_F1:
        {
            MessageBox(NULL, "F1!", HEADER, errIconOK);
            return true;
        }
        break;
    case KEY_F2:
        {
            MessageBox(NULL, "F2!", HEADER, errIconOK);
            return true;
        }

    }
    return true;
}

//.................................//
bool KeyboardEvent::onKeyUp(KeyMap key)
{
    MessageBox(NULL, "Key Released!", HEADER, errIconOK);
    return true;
}
}    //end of rodeoevent namespace